package com.nageoffer.shortlink.project.dao.mapper;

import com.nageoffer.shortlink.project.dao.entity.LinkOsStatsDO;
import org.apache.ibatis.annotations.Insert;

public interface LinkOsStatsMapper {

    @Insert("INSERT INTO " +
            "t_link_os_stats (full_short_url,gid,date, cnt, os,create_time, update_time, del_flag) " +
            "VALUES( #{fullShortUrl},#{gid} ,#{date}, #{cnt}, #{os},NOW(), NOW(), 0) " +
            "ON DUPLICATE KEY UPDATE cnt = cnt + #{cnt}")
    void shortLinkStats(LinkOsStatsDO linkOsStatsDO);
}
